Skip to main content

All Chains

Queries information for each chains integrated with Euclid.

query Chains($showAllChains: Boolean) {
chains {
all_chains(show_all_chains: $showAllChains) {
chain_id
factory_address
display_name
explorer_url
chain_uid
logo
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Chains($showAllChains: Boolean) {\n chains {\n all_chains(show_all_chains: $showAllChains) {\n chain_id\n factory_address\n display_name\n explorer_url\n chain_uid\n logo\n }\n }\n}","variables":{"showAllChains":true}}'

Open in Playground

Arguments

  • token (Boolean): If true, includes chains that will be integrated with Euclid soon. Otherwise, returns only the chains currently integrated.

Return Fields

FieldTypeDescription
factory_addressStringThe contract address of the factory contract on that chain.
chain_uidStringThe unique identifier (UID) of the chain.
display_nameStringThe display name of the chain.
logoStringThe URL or reference to the chain's logo image.
chain_idStringThe chain Id for the chain config.
explorer_urlStringThe URL to the blockchain explorer for this chain.